package com.wk.unreal.yyzxserver.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class Menu implements Serializable {

    /*
    CREATE TABLE `menu` (
  `id` int NOT NULL AUTO_INCREMENT COMMENT '主键',
  `menus_index` varchar(5) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '一级菜单索引',
  `title` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单标题',
  `icon` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单图标',
  `path` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '菜单路径',
  `parent_id` int DEFAULT NULL COMMENT '父级Id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
     */

   private Integer id; // 主键
   private String menusIndex; // 一级菜单索引
   private String title; // 菜单标题
   private String icon; // 菜单图标
   private String path; // 请求地址
   private Integer parentId; // 父级 ID

    // 设置获取二级菜单的容器
    private List<Menu> children;

}
